<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
    	try{
    	String _name=(String)session.getAttribute("_name");
    	if(!_name.equals("admin")){
    		session.setAttribute("message", "您没有此权限，无法执行此操作");
			String ref=request.getHeader("REFERER");
			response.sendRedirect(ref);
			return;
    	}
    	}
    	catch(Exception e){
    		session.setAttribute("message", "您没有此权限，请登陆");
			String ref=request.getHeader("REFERER");
			if(ref==null){
				response.sendRedirect("../admin.jsp");
				return;
			}
			response.sendRedirect(ref);
			return;
    	}
    	
%>
